Skip to content

[review] Strip Copilot-only MCP tools field from Claude gateway config#44897

Merged
pelikhan merged 3 commits into
mainfrom
copilot/fix-github-mcp-tools-registration-review-1783753552291
Jul 11, 2026
Merged

[review] Strip Copilot-only MCP tools field from Claude gateway config#44897
pelikhan merged 3 commits into
mainfrom
copilot/fix-github-mcp-tools-registration-review-1783753552291

Conversation

@github-actions

@github-actions github-actions Bot commented Jul 11, 2026

Copy link
Copy Markdown
Contributor

Summary

Strips the Copilot-only tools field from the Claude MCP gateway config generated by transformClaudeEntry. The MCP gateway may attach a tools filter for Copilot sessions, but Claude's MCP configuration format does not recognise that field, causing GitHub MCP server registration to fail in Claude sessions.

Changes

File Change
actions/setup/js/convert_gateway_config_claude.cjs Added delete transformed.tools in transformClaudeEntry to strip the unsupported field
actions/setup/js/convert_gateway_config_adapters.test.cjs Extended Claude adapter test to pass tools: ["read"] as input and assert it is absent from output
.changeset/patch-strip-copilot-tools-from-claude-config.md Patch-level changeset entry

Root Cause

The shared MCP gateway config may include a tools field scoped to Copilot. When the same config is transformed for Claude, that field is forwarded unchanged. Claude does not support tools in its MCP server entries, so GitHub MCP servers fail to register.

Fix

transformClaudeEntry now explicitly deletes transformed.tools after applying its other transformations, ensuring the output is valid for Claude regardless of what the gateway config contains.

Test Coverage

Existing unit test updated: input now includes tools: ["read"]; assertion confirms converted.tools is undefined.

Generated by PR Description Updater for #44897 · 29.1 AIC · ⌖ 4.41 AIC · ⊞ 4.7K ·

Copilot AI and others added 3 commits July 11, 2026 05:21
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Base automatically changed from copilot/fix-github-mcp-tools-registration to main July 11, 2026 07:21
@pelikhan pelikhan merged commit d15f1d9 into main Jul 11, 2026
7 checks passed
@pelikhan pelikhan deleted the copilot/fix-github-mcp-tools-registration-review-1783753552291 branch July 11, 2026 07:30
@github-actions

Copy link
Copy Markdown
Contributor Author

🎉 This pull request is included in a new release.

Release: v0.82.8

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants